package router

import (
	"chat/internal/api"
	"github.com/gin-gonic/gin"
)

func UserRouter(c *gin.RouterGroup) {
	user := c.Group("/user")
	{
		user.POST("/mobileRegister", api.MobileRegister)
		user.POST("/sendSms", api.SendSms)
		user.POST("/Login", api.Login)
		user.POST("/register", api.Register)
		user.POST("/nameLogin", api.NameLogin)
		//user.Use(pkg.JWTAuth("2209A"))
		user.POST("/publish", api.Publish)
		user.POST("/uploadFile", api.UploadFile)
		user.GET("/list", api.List)
		user.POST("/subscribe", api.Subscribe)
		user.GET("/lList", api.LList)
		user.POST("/spot", api.Spot)
		user.POST("/del", api.Del)
		user.POST("/leave", api.Leave)
		user.POST("/commentDel", api.CommentDel)
		user.POST("/publishDel", api.PublishDel)
		//user.Use(pkg.JWTAuth("2209A"))
		user.GET("/chat", api.Chat)
		user.POST("pullGroup", api.PullGroup)
		user.POST("/delGroup", api.DelGroup)
		user.POST("/pullPeople", api.PullPeople)
		user.POST("/addMember", api.AddMember)
		user.POST("/delMember", api.DelMember)
	}
}
